package com.example.smartcitydemo.bean

import androidx.recyclerview.widget.DiffUtil
import kotlinx.serialization.Serializable

/**
 * @PACKAGE_NAME: com.example.smartcitydemo.bean
 * @NAME: Caleb.F
 * @DATE: 2021/11/4 8:39
 * @Email: 1919796283@qq.com
 */
@Serializable
data class LoginBean(
    val password: String,
    val username: String,
)

/**
 * 新增新闻评论
 * @property content String
 * @property newsId Int
 * @constructor
 */
@Serializable
data class NewsCommitBean(
    val content: String,
    val newsId: Int,
)

/**
 * 修改个人信息data class
 * @property email String?
 * @property idCard String?
 * @property nickName String?
 * @property phonenumber String?
 * @property sex String?
 * @constructor
 */

@Serializable
data class ModifyPersonInfo(
    val email: String? = null,
    val idCard: String? = null,
    val nickName: String? = null,
    val phonenumber: String? = null,
    val sex: String? = null,
)

@Serializable
data class ModifyPassword(
    val newPassword: String,
    val oldPassword: String,
)

@Serializable
data class ReplyMessage(
    val content: String,
    val title: String,
)


@Serializable
data class ParentBusStation(
    val end: String,
    val endTime: String,
    val first: String,
    val id: Int,
    val mileage: String,
    val name: String,
    val price: Double,
    val startTime: String
){
    val startTimeString= "开始时间：$startTime"
    val endTimeString = "结束时间：$endTime"
    val startStation= "起点：$first"
    val endStation ="终点：$end"
    val millString= "里程：${mileage}km"
    val moneyString = "票价：${price}元"


}


@Serializable
data class ChildBusStation(

    val linesId: Int,
    val name: String,
    val sequence: Int,
    val stepsId: Int,
)

